$OpenBSD: patch-GNUmakefile_in,v 1.9 2017/01/21 22:55:01 danj Exp $
--- GNUmakefile.in.orig	Thu Jul 28 10:16:04 2016
+++ GNUmakefile.in	Fri Jan 20 17:52:05 2017
@@ -231,7 +231,7 @@ PTHREAD_LIB  = @PTHREAD_ONLY@@PTHREAD_LIB@
 SRCS         = $(C_SRC) $(CLIENT_TAG_SRC) $(W32_SRC)  $(PCRS_SRC)  $(PCRE_SRC)  $(REGEX_SRC)
 OBJS         = $(C_OBJS) $(CLIENT_TAG_OBJS) $(W32_OBJS) $(PCRS_OBJS) $(PCRE_OBJS) $(REGEX_OBJS)
 HDRS         = $(C_HDRS) $(W32_HDRS) $(PCRS_HDRS) $(PCRE_OBJS) $(REGEX_HDRS)
-LIBS         = @LIBS@ $(W32_LIB) $(SOCKET_LIB) $(PTHREAD_LIB)
+LIBS         = @LDFLAGS@ @LIBS@ $(W32_LIB) $(SOCKET_LIB) $(PTHREAD_LIB)
 
 
 #############################################################################
